package com.lhy.framework.beans.factory.support;

import com.lhy.framework.BeansException;
import com.lhy.framework.beans.factory.factory.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @ClassName InstantiationStrategy
 * @Description
 * @Author lihaiyang
 * @Date 2022/9/8 23:23
 * @Version 1.0
 */
public interface InstantiationStrategy {

    Object instantitate(String beanName, BeanDefinition beanDefinition, Constructor constructor, Object[] args) throws BeansException;

}
